package com.artfii.hibernate;


import java.util.List;

public interface BaseDao<M extends java.io.Serializable, PK extends java.io.Serializable> {

    public M get(PK id);

	public PK save(M model);

	public void saveOrUpdate(M model);

	public void update(M model);

	public void merge(M model);

	public void delete(PK id);

	public void deleteObject(M model);

	public <M> List<M> list(final String hql, final Object[] paramlist);
}
